package com.itheima.mypack02;

public class Test {
    public static void main(String[] args) {
        Demo demo1 = new Demo();
        demo1.method1();
        Demo.method2();
        System.out.println("-------------------------");
        Demo demo3 = new Demo();
        Demo.age = 500;
        Demo.room = "上海223";
        /*demo1.setAge(300);
        System.out.println(demo3.getAge());*/
        System.out.println(Demo.age);
        System.out.println(demo3.age);
        System.out.println(demo3.room);
        System.out.println(Demo.room);
    }
}
